﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.Master" AutoEventWireup="true" CodeBehind="fushen.aspx.cs" Inherits="Maticsoft.Web.Admin.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheet1.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content"><h1>领导复审</h1>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="salarysid" DataSourceID="SqlDataSource1" 
        EnableModelValidation="True" ForeColor="#333333" GridLines="None" 
        onrowcommand="GridView1_RowCommand">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="salarysid" HeaderText="编号" InsertVisible="False" 
                ReadOnly="True" SortExpression="salarysid" />
            <asp:BoundField DataField="statisticsid" HeaderText="statisticsid" 
                SortExpression="statisticsid" />
            <asp:BoundField DataField="salarysstartdate" HeaderText="结算开始时间" 
                SortExpression="salarysstartdate" />
            <asp:BoundField DataField="salarysenddate" HeaderText="结算结束时间" 
                SortExpression="salarysenddate" />
            <asp:BoundField DataField="originalsalarys" HeaderText="应得薪水" 
                SortExpression="originalsalarys" />
            <asp:BoundField DataField="salarys" HeaderText="实得薪水" 
                SortExpression="salarys" />
            <asp:BoundField DataField="reason" HeaderText="说明" SortExpression="reason" />
            <asp:BoundField DataField="verify" HeaderText="是否审核" SortExpression="verify" />
            <asp:BoundField DataField="verifyid" HeaderText="审核人" 
                SortExpression="verifyid" />
            <asp:BoundField DataField="ispay" HeaderText="是否支付" SortExpression="ispay" />
            <asp:BoundField DataField="userid" HeaderText="支付人" SortExpression="userid" />
            <asp:BoundField DataField="payid" HeaderText="支付帐号" SortExpression="payid" />
            <asp:BoundField DataField="other" HeaderText="其他信息" SortExpression="other" />
            <asp:TemplateField HeaderText="审核">
                <ItemTemplate>
                    <asp:Button ID="Button1" runat="server" 
                        CommandArgument='<%# Eval("salarysid") %>' CommandName="no" Text="驳回" />
                    &nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" 
                        CommandArgument='<%# Eval("salarysid") %>' CommandName="yes" Text="通过" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <EmptyDataTemplate>
            没有需要审核的信息
        </EmptyDataTemplate>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="server=127.0.0.1;User Id=root;password=11111111;Persist Security Info=True;database=epaper" 
        ProviderName="MySql.Data.MySqlClient" 
        SelectCommand="SELECT salarystatistics.* FROM salarystatistics WHERE (verify = 0)">
    </asp:SqlDataSource>
    <br />
    </div>
</asp:Content>
